package com.zmn.oms.services.interfaces.conf.distributereason;

import com.zmn.oms.model.entity.conf.distributereason.ConfOrderDistributeReason;
import com.zmn.oms.model.entity.conf.distributereason.ConfOrderDistributeReasonQuery;

import java.util.List;

/**
 * 类描述：改派缘由
 *
 * @author liuying
 * @date 2021/10/27 14:24
 */
public interface ConfOrderDistributeReasonService {

    /**
     * 查询配置
     *
     * @param query
     * @return
     */
    List<ConfOrderDistributeReason> listByQuery(ConfOrderDistributeReasonQuery query);

    /**
     * 分页查询
     *
     * @return
     */
    List<ConfOrderDistributeReason> listPageByQuery(ConfOrderDistributeReasonQuery query);

    /**
     * 查询数量
     *
     * @param query
     * @return
     */
    int countByQuery(ConfOrderDistributeReasonQuery query);

    /**
     * 根据ID 查询
     *
     * @param id
     * @return
     */
    ConfOrderDistributeReason findConfById(Integer id);

    /**
     * 根据id修改
     */
    int updateById(ConfOrderDistributeReason updated);

    /**
     * 修改
     *
     * @param record
     */
    void updateSelectiveById(ConfOrderDistributeReason record);

    /**
     * 新增
     *
     * @param record
     */
    Integer insertConf(ConfOrderDistributeReason record);

}
